import { post } from './axios'

// 提交航班信息
export const submitFlightInfo = (flightData) => {
  return post('/flight/submit', flightData)
}

// 获取航班列表
export const getFlightList = (params = {}) => {
  return post('/flight/list', params)
}

// 获取城市列表
export const getCityList = () => {
  return post('/city/list')
}

// 导出所有api方法
export default {
  submitFlightInfo,
  getFlightList,
  getCityList
}